#!/bin/bash

npm run build
tar -cvf dist.tar dist/*

scp dist.tar root@47.95.201.7:/usr/local/install/demo

ssh root@47.95.201.7 "
  cd /usr/local/install/demo;
  rm -rf css;
  rm -rf favicon.ico;
  rm -rf index.html;
  rm -rf js;
  tar -xvf dist.tar;
  mv dist/* ./;
  rm -rf dist*;
"
rm -rf dist*
